{% load static %}
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="{% static 'plugins/bootstrap/css/bootstrap.css' %}" />
    <link rel="stylesheet" href="{% static 'css/login.css' %}" />
  </head>
  <body>
    <div class="box">
      <h2>用户登录</h2>
      <form method="post" novalidate>
        {% csrf_token %}
        {% for field in form %}
          <div class="form-group">
            <label>{{ field.label }}</label>
            {{ field }}
            <span class="rule-check">{{ field.errors.0 }}</span>
          </div>
        {% endfor %}
        <button type="submit" class="btn btn-primary">登 录</button>
        <a class="code_login" href="{% url 'sms_login' %}">短信登录</a>
      </form>
    </div>
  </body>
</html>
